package com.product.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author：毕龙
 * Date: 2023/9/4 20:34
 */
@RestController
@RequestMapping("/server")
public class ServerConfigController {
    @Value("${server.port}")
    private String port;

    @RequestMapping("query")
    public String findServerPort() {
        return port;
    }


}
